<div class="md cats">
  <div class="head">
  	<h4>分类</h4>
  </div>
  <ul class="body">
  	<#if categorys?has_content>
     <#list categorys as category>
      <li class="cat-item<#if (category.parentId>0)> cat-item_1</#if>"><a class="m2a" href="/post/list/${category.id}">${category.name}(<#if isAdmin>${category.publishedCount}<#else>${category.publicCount}</#if>)</a></li>
     </#list>
    </#if>
    <#if isAdmin><li class="cat-item"><a class="m2a" href="/post/list/-2">草稿箱(${draftCount!0})</a></li></#if>
  </ul>
</div>
<div class="md tags">
  <div class="head">
  	<h4>标签</h4>
  </div>
  <ul class="body">
  <#if tags?has_content>
    <#list tags as tag>
      <li class="cat-item"><a class="m2a" href="/post/tag/${tag.name}">${tag.name}(<#if isAdmin>${tag.publishedCount}<#else>${tag.publicCount}</#if>)</a></li>
    </#list>
  </#if>
  </ul>
</div>
<div class="md archives">
  <div class="head">
  	<h4>归档</h4>
  </div>
  <ul class="body">
  <#if archives?has_content>
    <#list archives as archive>
     <li class="cat-item"><a class="m2a" href="/post/archive/${archive.id}">${Utils.long2Date(archive.id)?string("yyyy-MM")}(<#if isAdmin>${archive.publishedCount}<#else>${archive.publicCount}</#if>)</a></li>
    </#list>
  </#if>
  </ul>
</div>